package com.casic.ops.service.api;



import com.casic.ops.entity.request.BatchUploadRequest;
import com.casic.ops.entity.request.sftp.FileUploadRequest;
import com.casic.ops.entity.vo.BatchUploadCheckVO;
import com.casic.ops.entity.vo.BatchUploadTokenVO;

import java.util.List;

/**
 * @ClassName ops-platform
 * @Description 批量上传
 * @Author mianbin
 * @Date 2022/5/31 10:59
 * @Version 1.0
 **/
public interface BatchUploadService {

    /**
     * 批量上传检查机器以及文件
     *
     * @param request request
     * @return 检查信息
     */
    BatchUploadCheckVO checkMachineFiles(BatchUploadRequest request);

    /**
     * 获取上传 token
     *
     * @param request request
     * @return token
     */
    BatchUploadTokenVO getUploadAccessToken(BatchUploadRequest request);

    /**
     * 批量上传文件
     *
     * @param requestFiles requestFiles
     * @return fileToken
     */
    List<String> batchUpload(List<FileUploadRequest> requestFiles);

}
